function throtting(fn, delay) {
  let flash = false
  return function(...args) {
    if(flash) return 

    flash = true
    setTimeout(() => {
      flash = false
    }, delay)
    return fn.apply(this, args)
  }
}